﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;
using System.Globalization;

namespace Fulcrum
{
    class ValueConverter
    {
        public static object ConvertStringToObject(string value, Type type)
        {
            object realValue = Convert.ChangeType(value, type, CultureInfo.InvariantCulture);

            return realValue;
        }

    }
}
